import { createStore , applyMiddleware } from 'redux';
import detailReducer  from '../reducers/detailReducers';
import thunkMiddleware from 'redux-thunk';

module .exports = function(initialState) {
    const finalCreateStore = applyMiddleware(thunkMiddleware)(createStore);
    return finalCreateStore(detailReducer, initialState);
};